package org.fast.develop.logicflow.runtime.ws;

import lombok.Data;
import org.fast.develop.logicflow.runtime.enums.WebsocketStatusEnum;

/**
 * @author czh
 * @version V1.0
 * @data Created on 2023-01-29 17:03
 */
@Data
public class ResultMessage {

    private WebsocketStatusEnum status;

    private ResultData data;

    private ResultError error;

    public ResultMessage(WebsocketStatusEnum status) {
        this.status = status;
    }

    public String getStatus() {
        return status.getValue();
    }
}

